<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        [v-cloak]{
             display: none;
        }
    </style>
</head>
<body>
    <div id="app" v-cloak>
        {{msg}}<!-- 表达式 -->
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <!-- 引入vue开发版本包 -->
    <script>
        const app=new Vue({
            el:'#app',//制定容器,挂载点
            data:{
                nickname:'tony',
                msg:'hello vue'
            }
        })
    </script>
</body>
</html>